.class Lcom/waiqin365/lightapp/visit/fn;
.super Landroid/os/Handler;


# instance fields
.field private a:Ljava/lang/ref/WeakReference;


# direct methods
.method public constructor <init>(Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;)V
    .locals 1

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    new-instance v0, Ljava/lang/ref/WeakReference;

    invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/fn;->a:Ljava/lang/ref/WeakReference;

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 10

    const v8, 0x7f02013b

    const v7, 0x7f02013a

    const/4 v5, 0x1

    const/16 v9, 0x8

    const/4 v6, 0x0

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/fn;->a:Ljava/lang/ref/WeakReference;

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;

    if-nez v0, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget v1, p1, Landroid/os/Message;->what:I

    sparse-switch v1, :sswitch_data_0

    goto :goto_0

    :sswitch_0
    iget-object v1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v1, Lcom/waiqin365/lightapp/dailyreport/b/a/z;

    const-string/jumbo v2, "1"

    iget-object v3, v1, Lcom/waiqin365/lightapp/dailyreport/b/a/z;->a:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_15

    iget-object v2, v1, Lcom/waiqin365/lightapp/dailyreport/b/a/z;->f:Lcom/waiqin365/lightapp/dailyreport/c/f;

    if-eqz v2, :cond_0

    iget-object v3, v2, Lcom/waiqin365/lightapp/dailyreport/c/f;->a:Lcom/waiqin365/lightapp/dailyreport/c/g;

    invoke-static {v0, v3}, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;->a(Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;Lcom/waiqin365/lightapp/dailyreport/c/g;)Lcom/waiqin365/lightapp/dailyreport/c/g;

    iget-object v3, v2, Lcom/waiqin365/lightapp/dailyreport/c/f;->b:Ljava/util/ArrayList;

    if-nez v3, :cond_2

    new-instance v3, Ljava/util/ArrayList;

    invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V

    iput-object v3, v2, Lcom/waiqin365/lightapp/dailyreport/c/f;->b:Ljava/util/ArrayList;

    :cond_2
    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;->l(Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;)Ljava/util/ArrayList;

    move-result-object v3

    invoke-virtual {v3}, Ljava/util/ArrayList;->clear()V

    iget-object v3, v2, Lcom/waiqin365/lightapp/dailyreport/c/f;->b:Ljava/util/ArrayList;

    invoke-virtual {v3}, Ljava/util/ArrayList;->size()I

    move-result v3

    if-lez v3, :cond_3

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;->l(Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;)Ljava/util/ArrayList;

    move-result-object v3

    iget-object v4, v2, Lcom/waiqin365/lightapp/dailyreport/c/f;->b:Ljava/util/ArrayList;

    invoke-virtual {v3, v4}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;->l(Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;)Ljava/util/ArrayList;

    move-result-object v3

    invoke-virtual {v3}, Ljava/util/ArrayList;->size()I

    :cond_3
    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;->l(Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;)Ljava/util/ArrayList;

    move-result-object v3

    invoke-virtual {v3}, Ljava/util/ArrayList;->size()I

    move-result v3

    if-lez v3, :cond_10

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;->m(Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;)Landroid/view/View;

    move-result-object v3

    invoke-virtual {v3, v6}, Landroid/view/View;->setVisibility(I)V

    :goto_1
    iget-object v3, v1, Lcom/waiqin365/lightapp/dailyreport/b/a/z;->h:Ljava/lang/String;

    invoke-static {v3}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v3

    if-nez v3, :cond_11

    const-string/jumbo v3, "1"

    iget-object v4, v1, Lcom/waiqin365/lightapp/dailyreport/b/a/z;->h:Ljava/lang/String;

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_11

    invoke-static {v0, v5}, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;->a(Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;Z)Z

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;->n(Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;)Landroid/widget/ImageView;

    move-result-object v3

    invoke-virtual {v3, v8}, Landroid/widget/ImageView;->setImageResource(I)V

    :goto_2
    iget-object v3, v1, Lcom/waiqin365/lightapp/dailyreport/b/a/z;->g:Ljava/util/ArrayList;

    invoke-virtual {v3}, Ljava/util/ArrayList;->size()I

    move-result v3

    if-lez v3, :cond_12

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;->o(Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;)Landroid/widget/RelativeLayout;

    move-result-object v3

    invoke-virtual {v3, v6}, Landroid/widget/RelativeLayout;->setVisibility(I)V

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;->p(Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;)Landroid/widget/TextView;

    move-result-object v3

    iget-object v4, v1, Lcom/waiqin365/lightapp/dailyreport/b/a/z;->g:Ljava/util/ArrayList;

    invoke-static {v0, v3, v4}, Lcom/waiqin365/lightapp/dailyreport/util/a;->a(Landroid/content/Context;Landroid/widget/TextView;Ljava/util/ArrayList;)V

    :goto_3
    iget-object v3, v1, Lcom/waiqin365/lightapp/dailyreport/b/a/z;->g:Ljava/util/ArrayList;

    invoke-virtual {v3}, Ljava/util/ArrayList;->size()I

    move-result v3

    if-gtz v3, :cond_4

    iget-object v3, v2, Lcom/waiqin365/lightapp/dailyreport/c/f;->b:Ljava/util/ArrayList;

    invoke-virtual {v3}, Ljava/util/ArrayList;->size()I

    move-result v3

    if-lez v3, :cond_5

    :cond_4
    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;->q(Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;)Lcom/waiqin365/lightapp/dailyreport/c/p;

    move-result-object v3

    invoke-virtual {v3}, Lcom/waiqin365/lightapp/dailyreport/c/p;->notifyDataSetChanged()V

    :cond_5
    iget-object v1, v1, Lcom/waiqin365/lightapp/dailyreport/b/a/z;->g:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    if-nez v1, :cond_13

    iget-object v1, v2, Lcom/waiqin365/lightapp/dailyreport/c/f;->b:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    if-gtz v1, :cond_13

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;->r(Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;)Landroid/widget/LinearLayout;

    move-result-object v1

    invoke-virtual {v1, v9}, Landroid/widget/LinearLayout;->setVisibility(I)V

    :goto_4
    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;->s(Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;)Z

    move-result v1

    if-nez v1, :cond_14

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;->t(Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;)Landroid/widget/ScrollView;

    move-result-object v1

    new-instance v2, Lcom/waiqin365/lightapp/visit/fo;

    invoke-direct {v2, p0, v0}, Lcom/waiqin365/lightapp/visit/fo;-><init>(Lcom/waiqin365/lightapp/visit/fn;Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;)V

    invoke-virtual {v1, v2}, Landroid/widget/ScrollView;->post(Ljava/lang/Runnable;)Z

    goto/16 :goto_0

    :sswitch_1
    invoke-virtual {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;->dismissProgressDialog()V

    iget-object v1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v1, Lcom/waiqin365/lightapp/visit/a/a/am;

    const v2, 0x7f0806f1

    invoke-virtual {v0, v2}, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;->getString(I)Ljava/lang/String;

    iget-object v2, v1, Lcom/waiqin365/lightapp/visit/a/a/am;->c:Ljava/lang/String;

    if-eqz v2, :cond_6

    iget-object v2, v1, Lcom/waiqin365/lightapp/visit/a/a/am;->c:Ljava/lang/String;

    invoke-virtual {v2}, Ljava/lang/String;->length()I

    move-result v2

    if-lez v2, :cond_6

    iget-object v2, v1, Lcom/waiqin365/lightapp/visit/a/a/am;->c:Ljava/lang/String;

    :cond_6
    invoke-virtual {v1}, Lcom/waiqin365/lightapp/visit/a/a/am;->b()Z

    move-result v2

    if-eqz v2, :cond_b

    iget-object v2, v1, Lcom/waiqin365/lightapp/visit/a/a/am;->b:Ljava/lang/String;

    if-eqz v2, :cond_a

    const-string/jumbo v2, "1"

    iget-object v3, v1, Lcom/waiqin365/lightapp/visit/a/a/am;->b:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_a

    iget-object v1, v1, Lcom/waiqin365/lightapp/visit/a/a/am;->d:Ljava/util/ArrayList;

    invoke-static {v0, v1}, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;->a(Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;Ljava/util/ArrayList;)Ljava/util/ArrayList;

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;->c(Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;)Ljava/util/ArrayList;

    move-result-object v1

    if-eqz v1, :cond_9

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;->c(Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;)Ljava/util/ArrayList;

    move-result-object v1

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    if-lez v1, :cond_9

    move v5, v6

    :goto_5
    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;->c(Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;)Ljava/util/ArrayList;

    move-result-object v1

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    if-ge v5, v1, :cond_8

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;->c(Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;)Ljava/util/ArrayList;

    move-result-object v1

    invoke-virtual {v1, v5}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/waiqin365/lightapp/visit/b/z;

    invoke-static {v0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v2

    const v3, 0x7f030297

    const/4 v4, 0x0

    invoke-virtual {v2, v3, v4}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v7

    const v2, 0x7f0c0ca2

    invoke-virtual {v7, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/RelativeLayout;

    invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/RelativeLayout;->setTag(Ljava/lang/Object;)V

    invoke-virtual {v2, v0}, Landroid/widget/RelativeLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v2, 0x7f0c0ca3

    invoke-virtual {v7, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    const v3, 0x7f0c0ca4

    invoke-virtual {v7, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    const v4, 0x7f0c0ca5

    invoke-virtual {v7, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/TextView;

    iget-object v8, v1, Lcom/waiqin365/lightapp/visit/b/z;->c:Ljava/lang/String;

    invoke-virtual {v2, v8}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v2, v1, Lcom/waiqin365/lightapp/visit/b/z;->h:Ljava/lang/String;

    invoke-virtual {v3, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v2, v1, Lcom/waiqin365/lightapp/visit/b/z;->e:Ljava/lang/String;

    invoke-static {v2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-nez v2, :cond_7

    iget-object v1, v1, Lcom/waiqin365/lightapp/visit/b/z;->e:Ljava/lang/String;

    invoke-virtual {v4, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :goto_6
    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;->d(Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;)Landroid/widget/LinearLayout;

    move-result-object v1

    invoke-virtual {v1, v7}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    add-int/lit8 v1, v5, 0x1

    move v5, v1

    goto :goto_5

    :cond_7
    invoke-virtual {v4, v9}, Landroid/widget/TextView;->setVisibility(I)V

    goto :goto_6

    :cond_8
    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;->e(Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;)Landroid/widget/FrameLayout;

    move-result-object v1

    invoke-virtual {v1, v6}, Landroid/widget/FrameLayout;->setVisibility(I)V

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;->f(Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;)Lcom/waiqin365/lightapp/view/NoNetView;

    move-result-object v0

    invoke-virtual {v0, v9}, Lcom/waiqin365/lightapp/view/NoNetView;->setVisibility(I)V

    goto/16 :goto_0

    :cond_9
    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;->e(Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;)Landroid/widget/FrameLayout;

    move-result-object v1

    invoke-virtual {v1, v9}, Landroid/widget/FrameLayout;->setVisibility(I)V

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;->f(Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;)Lcom/waiqin365/lightapp/view/NoNetView;

    move-result-object v0

    invoke-virtual {v0, v9}, Lcom/waiqin365/lightapp/view/NoNetView;->setVisibility(I)V

    goto/16 :goto_0

    :cond_a
    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;->f(Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;)Lcom/waiqin365/lightapp/view/NoNetView;

    move-result-object v2

    iget v1, v1, Lcom/waiqin365/lightapp/visit/a/a/am;->a:I

    invoke-virtual {v2, v1}, Lcom/waiqin365/lightapp/view/NoNetView;->a(I)V

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;->f(Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;)Lcom/waiqin365/lightapp/view/NoNetView;

    move-result-object v0

    invoke-virtual {v0, v6}, Lcom/waiqin365/lightapp/view/NoNetView;->setVisibility(I)V

    goto/16 :goto_0

    :cond_b
    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;->f(Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;)Lcom/waiqin365/lightapp/view/NoNetView;

    move-result-object v2

    iget v1, v1, Lcom/waiqin365/lightapp/visit/a/a/am;->a:I

    invoke-virtual {v2, v1}, Lcom/waiqin365/lightapp/view/NoNetView;->a(I)V

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;->f(Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;)Lcom/waiqin365/lightapp/view/NoNetView;

    move-result-object v0

    invoke-virtual {v0, v6}, Lcom/waiqin365/lightapp/view/NoNetView;->setVisibility(I)V

    goto/16 :goto_0

    :sswitch_2
    invoke-virtual {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;->dismissProgressDialog()V

    iget-object v1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v1, Lcom/waiqin365/lightapp/visit/a/a/ao;

    const v2, 0x7f0806f1

    invoke-virtual {v0, v2}, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    iget-object v3, v1, Lcom/waiqin365/lightapp/visit/a/a/ao;->c:Ljava/lang/String;

    if-eqz v3, :cond_c

    iget-object v3, v1, Lcom/waiqin365/lightapp/visit/a/a/ao;->c:Ljava/lang/String;

    invoke-virtual {v3}, Ljava/lang/String;->length()I

    move-result v3

    if-lez v3, :cond_c

    iget-object v2, v1, Lcom/waiqin365/lightapp/visit/a/a/ao;->c:Ljava/lang/String;

    :cond_c
    invoke-virtual {v1}, Lcom/waiqin365/lightapp/visit/a/a/ao;->b()Z

    move-result v3

    if-eqz v3, :cond_f

    iget-object v3, v1, Lcom/waiqin365/lightapp/visit/a/a/ao;->b:Ljava/lang/String;

    if-eqz v3, :cond_e

    const-string/jumbo v3, "1"

    iget-object v4, v1, Lcom/waiqin365/lightapp/visit/a/a/ao;->b:Ljava/lang/String;

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_e

    iget-object v2, v1, Lcom/waiqin365/lightapp/visit/a/a/ao;->e:Ljava/util/ArrayList;

    if-eqz v2, :cond_d

    iget-object v2, v1, Lcom/waiqin365/lightapp/visit/a/a/ao;->e:Ljava/util/ArrayList;

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v2

    if-lez v2, :cond_d

    iget-object v1, v1, Lcom/waiqin365/lightapp/visit/a/a/ao;->e:Ljava/util/ArrayList;

    invoke-virtual {v1, v6}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/waiqin365/lightapp/visit/b/bd;

    invoke-static {v0, v1}, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;->a(Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;Lcom/waiqin365/lightapp/visit/b/bd;)Lcom/waiqin365/lightapp/visit/b/bd;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;->a()V

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;->g(Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;)Lcom/waiqin365/lightapp/view/ImagePreview;

    move-result-object v1

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/view/ImagePreview;->g()V

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;->h(Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;)V

    iget-boolean v1, v0, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;->b:Z

    if-eqz v1, :cond_0

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;->i(Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;)Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-eqz v1, :cond_0

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;->j(Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;)Lcom/waiqin365/lightapp/visit/b/bd;

    move-result-object v1

    iget-object v1, v1, Lcom/waiqin365/lightapp/visit/b/bd;->V:Ljava/lang/String;

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-nez v1, :cond_0

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;->j(Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;)Lcom/waiqin365/lightapp/visit/b/bd;

    move-result-object v1

    iget-object v1, v1, Lcom/waiqin365/lightapp/visit/b/bd;->V:Ljava/lang/String;

    invoke-static {v0, v1}, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;->a(Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;Ljava/lang/String;)Ljava/lang/String;

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;->k(Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;)V

    goto/16 :goto_0

    :cond_d
    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;->a(Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;)Landroid/content/Context;

    move-result-object v1

    const v2, 0x7f08058e

    invoke-virtual {v0, v2}, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-static {v1, v0, v6}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    goto/16 :goto_0

    :cond_e
    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;->a(Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;)Landroid/content/Context;

    move-result-object v0

    invoke-static {v0, v2, v6}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    goto/16 :goto_0

    :cond_f
    iget v1, v1, Lcom/waiqin365/lightapp/visit/a/a/ao;->a:I

    invoke-static {v0, v1}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;I)V

    goto/16 :goto_0

    :cond_10
    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;->m(Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;)Landroid/view/View;

    move-result-object v3

    invoke-virtual {v3, v9}, Landroid/view/View;->setVisibility(I)V

    goto/16 :goto_1

    :cond_11
    invoke-static {v0, v6}, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;->a(Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;Z)Z

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;->n(Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;)Landroid/widget/ImageView;

    move-result-object v3

    invoke-virtual {v3, v7}, Landroid/widget/ImageView;->setImageResource(I)V

    goto/16 :goto_2

    :cond_12
    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;->o(Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;)Landroid/widget/RelativeLayout;

    move-result-object v3

    invoke-virtual {v3, v9}, Landroid/widget/RelativeLayout;->setVisibility(I)V

    goto/16 :goto_3

    :cond_13
    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;->r(Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;)Landroid/widget/LinearLayout;

    move-result-object v1

    invoke-virtual {v1, v6}, Landroid/widget/LinearLayout;->setVisibility(I)V

    goto/16 :goto_4

    :cond_14
    invoke-static {v0, v6}, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;->b(Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;Z)Z

    goto/16 :goto_0

    :cond_15
    iget v1, v1, Lcom/waiqin365/lightapp/dailyreport/b/a/z;->c:I

    invoke-static {v0, v1}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;I)V

    goto/16 :goto_0

    :sswitch_3
    iget-object v1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v1, Lcom/waiqin365/lightapp/dailyreport/b/a/aj;

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/dailyreport/b/a/aj;->a()Z

    move-result v2

    if-eqz v2, :cond_1c

    const-string/jumbo v2, "1"

    iget-object v3, v1, Lcom/waiqin365/lightapp/dailyreport/b/a/aj;->a:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_1a

    iget-object v2, v1, Lcom/waiqin365/lightapp/dailyreport/b/a/aj;->g:Ljava/util/ArrayList;

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v2

    if-lez v2, :cond_17

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;->o(Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;)Landroid/widget/RelativeLayout;

    move-result-object v2

    invoke-virtual {v2, v6}, Landroid/widget/RelativeLayout;->setVisibility(I)V

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;->p(Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;)Landroid/widget/TextView;

    move-result-object v2

    iget-object v3, v1, Lcom/waiqin365/lightapp/dailyreport/b/a/aj;->g:Ljava/util/ArrayList;

    invoke-static {v0, v2, v3}, Lcom/waiqin365/lightapp/dailyreport/util/a;->a(Landroid/content/Context;Landroid/widget/TextView;Ljava/util/ArrayList;)V

    :goto_7
    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;->l(Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;)Ljava/util/ArrayList;

    move-result-object v2

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v2

    if-gtz v2, :cond_16

    iget-object v1, v1, Lcom/waiqin365/lightapp/dailyreport/b/a/aj;->g:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    if-lez v1, :cond_18

    :cond_16
    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;->r(Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;)Landroid/widget/LinearLayout;

    move-result-object v1

    invoke-virtual {v1, v6}, Landroid/widget/LinearLayout;->setVisibility(I)V

    :goto_8
    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;->u(Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;)Z

    move-result v1

    if-eqz v1, :cond_19

    invoke-static {v0, v6}, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;->a(Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;Z)Z

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;->n(Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;)Landroid/widget/ImageView;

    move-result-object v0

    invoke-virtual {v0, v7}, Landroid/widget/ImageView;->setImageResource(I)V

    goto/16 :goto_0

    :cond_17
    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;->o(Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;)Landroid/widget/RelativeLayout;

    move-result-object v2

    invoke-virtual {v2, v9}, Landroid/widget/RelativeLayout;->setVisibility(I)V

    goto :goto_7

    :cond_18
    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;->r(Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;)Landroid/widget/LinearLayout;

    move-result-object v1

    invoke-virtual {v1, v9}, Landroid/widget/LinearLayout;->setVisibility(I)V

    goto :goto_8

    :cond_19
    invoke-static {v0, v5}, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;->a(Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;Z)Z

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;->n(Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;)Landroid/widget/ImageView;

    move-result-object v0

    invoke-virtual {v0, v8}, Landroid/widget/ImageView;->setImageResource(I)V

    goto/16 :goto_0

    :cond_1a
    iget-object v2, v1, Lcom/waiqin365/lightapp/dailyreport/b/a/aj;->b:Ljava/lang/String;

    invoke-static {v2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-eqz v2, :cond_1b

    iget v1, v1, Lcom/waiqin365/lightapp/dailyreport/b/a/aj;->c:I

    invoke-static {v0, v1}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;I)V

    goto/16 :goto_0

    :cond_1b
    iget-object v1, v1, Lcom/waiqin365/lightapp/dailyreport/b/a/aj;->b:Ljava/lang/String;

    invoke-static {v0, v1}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;)V

    goto/16 :goto_0

    :cond_1c
    iget v1, v1, Lcom/waiqin365/lightapp/dailyreport/b/a/aj;->c:I

    invoke-static {v0, v1}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;I)V

    goto/16 :goto_0

    :sswitch_data_0
    .sparse-switch
        0x4 -> :sswitch_0
        0x7 -> :sswitch_3
        0x2c2 -> :sswitch_2
        0x2c3 -> :sswitch_1
    .end sparse-switch
.end method
